<?php
// +----------------------------
// | Created by PhpStorm
// +----------------------------
// | Author: YnnSon
// +----------------------------
namespace app\api\model;

/**
 * 消息列表
 * Class Message
 * @package app\api\model
 */
class MessageDetail extends BaseModel
{
    protected $autoWriteTimestamp = true;
    /**
     * @Desc 格式化日期
     *
     * @param $value
     *
     * @return false|string
     */
    protected function getCreateTimeAttr($value)
    {
        return date('Y-m-d', $value);
    }

    public static function insertData($param)
    {
        return self::create($param);
    }
}